home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8"?> <html><head><title>FileExists Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03020415"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css"> p.P1{ } p.P2{ } span.T1{ font-weight:bold;} </style></head><body> <help:to-be-embedded Eid="fileexists" xmlns:help="http://openoffice.org/2000/help"> <p class="Head1"><help:link Id="66505">FileExists Function [Runtime]</help:link></p> <p class="Paragraph">Determines whether a file or a directory is available on the data medium.</p> </help:to-be-embedded> <p class="Paragraph"><span class="T1">Syntax</span>:</p> <p class="Paragraph">FileExists(FileName As String | DirectoryName As String) <help:key-word value="FileExists" tag="kw66505_1" xmlns:help="http://openoffice.org/2000/help"/></p> <p class="Paragraph"><span class="T1">Return value</span>:</p> <p class="Paragraph">Bool</p> <p class="Paragraph"><span class="T1">Parameter</span>:</p> <p class="Paragraph">FileName | DirectoryName: Any string expression that contains an unambiguous file specification. The <help:link Id="66636" Eid="urllocal" xmlns:help="http://openoffice.org/2000/help">URL notation</help:link> can also be used here.</p> <p class="P2">Example:</p> <p class="PropText">sub ExampleFileExists</p> <p class="PropText"/> <p class="PropText">msgbox FileExists("C:\autoexec.bat")</p> <p class="PropText">msgbox FileExists("file:///d|/bookmark.htm")</p> <p class="PropText">msgbox FileExists("file:///d|/private")</p> <p class="PropText">end sub</p> <p class="PropText"/> </body></html>